{% extends 'base.html' %}

{% block content %}
<h1>北航新闻</h1>
<ul>
    {% for article in articles %}
    <li>
        <h2>{{ article.title }}</h2>
        <p>发布时间：{{ article.pub_date }}</p>
        <a href="{{ article.link }}">阅读原文</a>
        {% if article.wordcloud_image %}
        <img src="{{ article.wordcloud_image.url }}" alt="词云图">
        {% endif %}
    </li>
    {% endfor %}
</ul>
{% endblock %}